"["(x, i)
"head"(x, n, ...)
"tail"(x, n, ...)Diff objectDiff object with subsetting indices recorded for use by
show
[ only supports numeric indices, and returns without error if you
specify out of bound indices. If you apply multiple subsetting methods they
will be applied in the following order irrespective of what order you
actually specify them in: [, then head, then tail.
If you use the same subsetting method multiple times on the same object,
the last call will define the outcome.These methods are implemented by storing the chosen indices in the
Diff object and using them to subset the as.character output.
This mechanism explains the seemingly odd behavior documented above.